<template>
<el-input v-model="text"></el-input>
<el-button @click="add">发布</el-button>
</template>

<script setup>
    import {ref} from "vue"
    let text=ref("")
     let props=defineProps(["addComment"])
    const add=()=>{
        // console.log(text.value);
        props.addComment(text.value)
    }
</script>

<style>

</style>